package com.ruoyi.performance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.performance.mapper.InfoPrePerformanceEvaluationMapper;
import com.ruoyi.performance.domain.InfoPrePerformanceEvaluation;
import com.ruoyi.performance.service.IInfoPrePerformanceEvaluationService;

/**
 * 事情评估自评Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-02-24
 */
@Service
public class InfoPrePerformanceEvaluationServiceImpl implements IInfoPrePerformanceEvaluationService 
{
    @Autowired
    private InfoPrePerformanceEvaluationMapper infoPrePerformanceEvaluationMapper;

    /**
     * 查询事情评估自评
     * 
     * @param id 事情评估自评主键
     * @return 事情评估自评
     */
    @Override
    public InfoPrePerformanceEvaluation selectInfoPrePerformanceEvaluationById(Long id)
    {
        return infoPrePerformanceEvaluationMapper.selectInfoPrePerformanceEvaluationById(id);
    }

    /**
     * 查询事情评估自评列表
     * 
     * @param infoPrePerformanceEvaluation 事情评估自评
     * @return 事情评估自评
     */
    @Override
    public List<InfoPrePerformanceEvaluation> selectInfoPrePerformanceEvaluationList(InfoPrePerformanceEvaluation infoPrePerformanceEvaluation)
    {
        return infoPrePerformanceEvaluationMapper.selectInfoPrePerformanceEvaluationList(infoPrePerformanceEvaluation);
    }

    /**
     * 新增事情评估自评
     * 
     * @param infoPrePerformanceEvaluation 事情评估自评
     * @return 结果
     */
    @Override
    public int insertInfoPrePerformanceEvaluation(InfoPrePerformanceEvaluation infoPrePerformanceEvaluation)
    {
        return infoPrePerformanceEvaluationMapper.insertInfoPrePerformanceEvaluation(infoPrePerformanceEvaluation);
    }

    /**
     * 修改事情评估自评
     * 
     * @param infoPrePerformanceEvaluation 事情评估自评
     * @return 结果
     */
    @Override
    public int updateInfoPrePerformanceEvaluation(InfoPrePerformanceEvaluation infoPrePerformanceEvaluation)
    {
        return infoPrePerformanceEvaluationMapper.updateInfoPrePerformanceEvaluation(infoPrePerformanceEvaluation);
    }

    /**
     * 批量删除事情评估自评
     * 
     * @param ids 需要删除的事情评估自评主键
     * @return 结果
     */
    @Override
    public int deleteInfoPrePerformanceEvaluationByIds(Long[] ids)
    {
        return infoPrePerformanceEvaluationMapper.deleteInfoPrePerformanceEvaluationByIds(ids);
    }

    /**
     * 删除事情评估自评信息
     * 
     * @param id 事情评估自评主键
     * @return 结果
     */
    @Override
    public int deleteInfoPrePerformanceEvaluationById(Long id)
    {
        return infoPrePerformanceEvaluationMapper.deleteInfoPrePerformanceEvaluationById(id);
    }
}
